package business.report.impl;

import business.report.CateringEnterprisesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.CateringEnterprises;
import report.domain.CateringEnterprisesCriteria;
import report.mapper.CateringEnterprisesMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "cateringEnterprisesService")
public class CateringEnterprisesServiceImpl implements CateringEnterprisesService{
    @Autowired
    CateringEnterprisesMapper cateringEnterprisesMapper;
    @Override
    public List<CateringEnterprises> getCateringEnterprises() {
        CateringEnterprisesCriteria criteria =  new CateringEnterprisesCriteria();
        criteria.createCriteria().getAllCriteria();
        return cateringEnterprisesMapper.selectByExample(criteria);
    }
}
